{include file="public/header" /}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.css"}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.js"}
<style>
    #des, #des input {
        width: 40px;
        text-align: center;
    }

    #id {
        width: 78px;
    }

    .bs-checkbox {
        width: 36px;
        height: 40px
    }

    .fixed-table-toolbar .columns, .fixed-table-toolbar .search {
        margin-left: 0;
        margin-top: 0
    }

    #title span {
        float: right;
        margin-left: 3px;
    }

    .search {
        margin-bottom: 0 !important;
    }

    .asdlkjasd {
        background: #1ab394;
        color: #fff
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content {:config('adminClass.main')}">
    <div class="ibox float-e-margins">
        {include file="public/tophead"}
        {include file="public/top" /}
        <div class="ibox-content">
            {include file="public/topsection"}
            <div class="row row-lg">
                <div class="col-sm-12">
                    <div class="example">
                        <form class="form-horizontal" method="post">
                            <table data-toggle="table">
                                <thead>
                                <tr>
                                    <th data-align="center">应用APPID</th>
                                    <th data-align="center">商户号</th>
                                    <th data-align="center">备注</th>
                                    <th data-align="center">选择</th>
                                    <th data-align="center">管理</th>
                                </tr>
                                </thead>
                                <tbody id="form">
                                {volist name="data" id="v"}
                                <tr id="id{$v.id}" class="class">
                                    <td>
                                        {$v.appid}
                                    </td>
                                    <td id="title">
                                        {$v.merchantid}
                                    </td>
                                    <td id="title">
                                        {$v.remark}
                                    </td>
                                    <td id="title">
                                        {$v.is_select?'已选':''}
                                    </td>
                                    <td>
                                        <div class="btn-group">
                                            <div data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle">操作 <span class="caret"></span>
                                            </div>
                                            <ul class="dropdown-menu">
                                                <li>
                                                    <a onclick="add('{:url(\'add_wxpay\',[\'id\'=>$v[\'id\'],\'url\'=>-1])}')">修改</a>
                                                </li>
                                                <li class="divider"></li>
                                                <li><a onclick="del('{$v.id}')">删除</a>
                                                </li>
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
            <hr>
            <div class="row row-lg">
                <div class="col-sm-6 pages">{$page}</div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
<script type="text/javascript">

    function del(id){
        swal_del(id,"{:url('del_wxpay')}")
    }

    function watch(id) {
        layui.use('layer', function () {
            var layer = layui.layer;
            layer.open({
                title: '预览',
                area: ['100%', '100%'],
                type: 2,
                content: '{:url("watch")}?id=' + id
            });
        });
    }
</script>